<div id="navigation" class="filetree">
	<strong>ADMIN</strong>
	<ul>
		<li><a href="#">Home</a></li>
		<li><a href="#">Tables</a>
			<ul>
				<?php
				foreach ( $core->get_user_tables () as $t ) {
					echo '<li><a href="#?table_name='.$t->getAttribute("name").'">'.$t->getAttribute("title").'</a>';
					if ( $xpath->query(".//plugins/plugin", $t)->length > 0) {
						echo '<ul class="navigation-plugin">';
						foreach ( $xpath->query(".//plugins/plugin", $t) as $plugin )
							echo '<li><a href="#?table_name='.$t->getAttribute("name").'&plugin_name='.$plugin->getAttribute ("name").'" title="'.$plugin->getAttribute ("title").'">'.$plugin->getAttribute ("title").'</a></li>';
						echo "</ul>";
					}
					echo '</li>';
				}
				?>
			</ul>
		</li>
		<li><a href="#">Configurazione</a>
			<ul>
				<li><a href="#">Intro 1</a></li>
				<li><a href="#">Intro 2</a></li>
				<li><a href="#">Intro 3</a></li>
			</ul>
		</li>
	</ul>
</div>
<script>
$("#navigation").treeview({
	animated:	"fast",
	collapsed: 	true, 
	persist: 	"cookie"
});
</script>